home *** CD-ROM | disk | FTP | other *** search
- on @1:JOIN:# {
- if ((%bt.join == on) && ($ulevel != 40)) bt.jscan $chan $tp(botnet.txt)
- }
- on @1:TEXT:*:# {
- if ((%bt.msg == on) && ($ulevel != 40)) bt.mscan $chan $tp(botnet.txt)
- }
- on @1:ACTION:*:# {
- if ((%bt.msg == on) && ($ulevel != 40)) bt.mscan $chan $tp(botnet.txt)
- }
- on @1:NOTICE:*:# {
- if ((%bt.msg == on) && ($ulevel != 40)) bt.mscan $chan $tp(botnet.txt)
- }
- on 1:NICK {
- if ((%bt.nick != on) || ($ulevel != 40) || ($newnick == $me)) return
- var %a, %z
- set %a 0
- :start
- inc %a
- if ($comchan($newnick,%a)) {
- set %z $ifmatch
- if ($me isop %z) bt.nscan %z $tp(botnet.txt)
- goto start
- }
- }
- CTCP 1:*:# {
- if (($me isop $chan) && (%bt.ctcp == on) && ($ulevel != 40)) bt.cscan $chan $tp(botnet.txt)
- }
- alias -l bt.mscan {
- if ($isvalidchan(%bt.mchan,$1) != $true) return
- var %a, %b
- set %a $readini -n $2 $1 mn
- set %b $ticks
- dec %b $readini -n $2 $1 mt
- if ((%a == $null) || (%b > %bt.mtime)) {
- writeini -n $2 $1 mn 0
- writeini -n $2 $1 mt $ticks
- return
- }
- inc %a
- writeini -n $2 $1 mn %a
- if (%a <= %bt.maxmsgs) return
- remini $2 $1
- if (%bt.mmod == on) {
- mode $1 +m
- set %f11cmd mode $1 -m
- }
- else set %f11cmd mode $1 +m
- if (%bt.mknop == on) bt.knop $1 %bt.mkick
- else set %f12cmd bt.knop $1 %bt.mkick
- iiecho . $+ $str(-,25) $+ .
- iiecho $vl $hc(FLOOD!) type $fix(11,BotMessage) $vl
- iiecho $vl $+ $str(-,25) $+ $vl
- iiecho $vl Chan: $fix(17,$1) $vl
- if (%bt.mmod == on) iiecho $vl $fix(23,F11: undo +m) $vl
- else iiecho $vl $fix(23,F11: +m chan) $vl
- if (%bt.mknop == off) iiecho $vl $fix(23,F12: kick nonops) $vl
- iiecho ' $+ $str(-,25) $+ '
- }
- alias -l bt.jscan {
- if ($isvalidchan(%bt.jchan,$1) != $true) return
- var %a, %b
- set %a $readini -n $2 $1 jn
- set %b $ticks
- dec %b $readini -n $2 $1 jt
- if ((%a == $null) || (%b > %bt.jtime)) {
- writeini -n $2 $1 jn 0
- writeini -n $2 $1 jt $ticks
- return
- }
- inc %a
- writeini -n $2 $1 jn %a
- if (%a <= %bt.maxjoins) return
- remini $2 $1
- if ((%bt.dont.trigger == on) && (%bt.jmod == on)) {
- set %bt.jmod off
- .timer 1 20 set %bt.jmod on $vl unset %bt.dont.trigger
- timoff %bt.dont.timer2 bt.dont.timer2
- timoff %bt.dont.timer bt.dont.timer
- }
- else unset %bt.dont.trigger
- if (%bt.jmod == on) {
- mode $1 +i
- set %f11cmd mode $1 -i
- }
- else set %f11cmd mode $1 +i
- if (%bt.jknop == on) bt.knop $1 %bt.jkick
- else set %f12cmd bt.knop $1 %bt.jkick
- iiecho . $+ $str(-,25) $+ .
- iiecho $vl $hc(FLOOD!) type $fix(11,BotJoin) $vl
- iiecho $vl $+ $str(-,25) $+ $vl
- iiecho $vl Chan: $fix(17,$1) $vl
- if (%bt.jmod == on) iiecho $vl $fix(23,F11: undo +i) $vl
- else iiecho $vl $fix(23,F11: +i chan) $vl
- if (%bt.jknop == off) iiecho $vl $fix(23,F12: kick nonops) $vl
- iiecho ' $+ $str(-,25) $+ '
- }
- alias -l bt.nscan {
- if ($isvalidchan(%bt.nchan,$1) != $true) return
- var %a, %b
- set %a $readini -n $2 $1 nn
- set %b $ticks
- dec %b $readini -n $2 $1 nt
- if ((%a == $null) || (%b > %bt.ntime)) {
- writeini -n $2 $1 nn 0
- writeini -n $2 $1 nt $ticks
- return
- }
- inc %a
- writeini -n $2 $1 nn %a
- if (%a <= %bt.maxnicks) return
- remini $2 $1
- if (%bt.nmod == on) {
- mode $1 +i
- set %f11cmd mode $1 -i
- }
- else set %f11cmd mode $1 +i
- if (%bt.mknop == on) bt.knop $1 %bt.nkick
- else set %f12cmd bt.knop $1 %bt.nkick
- iiecho . $+ $str(-,25) $+ .
- iiecho $vl $hc(FLOOD!) type $fix(11,BotNick) $vl
- iiecho $vl $+ $str(-,25) $+ $vl
- iiecho $vl Chan: $fix(17,$1) $vl
- if (%bt.nmod == on) iiecho $vl $fix(23,F11: undo +i) $vl
- else iiecho $vl $fix(23,F11: +i chan) $vl
- if (%bt.nknop == off) iiecho $vl $fix(23,F12: kick nonops) $vl
- iiecho ' $+ $str(-,25) $+ '
- }
- alias -l bt.cscan {
- if ($isvalidchan(%bt.cchan,$1) != $true) return
- var %a, %b
- set %a $readini -n $2 $1 cn
- set %b $ticks
- dec %b $readini -n $2 $1 ct
- if ((%a == $null) || (%b > %bt.ncime)) {
- writeini -n $2 $1 cn 0
- writeini -n $2 $1 ct $ticks
- return
- }
- inc %a
- writeini -n $2 $1 cn %a
- if (%a <= %bt.maxctcps) return
- remini $2 $1
- if (%bt.cmod == on) {
- mode $1 +m
- set %f11cmd mode $1 -m
- }
- else set %f11cmd mode $1 +m
- if (%bt.cknop == on) bt.knop $1 %bt.ckick
- else set %f12cmd bt.knop $1 %bt.ckick
- iiecho . $+ $str(-,25) $+ .
- iiecho $vl $hc(FLOOD!) type $fix(11,BotCTCP) $vl
- iiecho $vl $+ $str(-,25) $+ $vl
- iiecho $vl Chan: $fix(17,$1) $vl
- if (%bt.cmod == on) iiecho $vl $fix(23,F11: undo +m) $vl
- else iiecho $vl $fix(23,F11: +m chan) $vl
- if (%bt.cknop == off) iiecho $vl $fix(23,F12: kick nonops) $vl
- iiecho ' $+ $str(-,25) $+ '
- }
- alias bt.knop {
- var %a, %z
- set %a 0
- :start
- inc %a
- if ($rnick($1,%a)) {
- set %z $ifmatch
- if ($usr(%z) == $null) queue kick $1 %z : $+ $2-
- goto start
- }
- queue
- }
-